﻿using System;
using System.Collections.Generic;

namespace ArsenalManagement.Models
{
    public partial class User
    {
        public User()
        {
            Userinfos = new HashSet<Userinfo>();
        }

        public int Id { get; set; }
        public string Username { get; set; } = null!;
        public string Password { get; set; } = null!;
        /// <summary>
        /// 1是军官，0是士兵
        /// </summary>
        public bool Authority { get; set; }

        public virtual ICollection<Userinfo> Userinfos { get; set; }
    }
}
